package middlewareLogExtraction.model;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegexHelper {
	public Matcher regexFind(String text, String regex) {
		Pattern pattern = Pattern.compile(regex);
		Matcher matcher = pattern.matcher(text);
		if (matcher.find())
			return matcher;
		else
			return null;
	}

}
